import Vue from "vue";

import {
  Button,
  Checkbox,
  Form,
  FormItem,
  Input,
  Loading,
  Message,
  Radio,
  Select,
  Menu,
  MenuItem,
  Submenu,
  Breadcrumb,
  BreadcrumbItem,
} from "element-ui";

Vue.use(Loading.directive); // 指令 v-loading
Vue.prototype.$loading = Loading.service;
Vue.prototype.$message = Message;

Vue.component(Button.name, Button);
Vue.component(Checkbox.name, Checkbox);
Vue.component(Input.name, Input);
Vue.component(Message.name, Message);
Vue.component(Form.name, Form);
Vue.component(FormItem.name, FormItem);
Vue.component(Radio.name, Radio);
Vue.component(Select.name, Select);
Vue.component(Menu.name, Menu);
Vue.component(MenuItem.name, MenuItem);
Vue.component(Submenu.name, Submenu);
Vue.component(Breadcrumb.name, Breadcrumb);
Vue.component(BreadcrumbItem.name, BreadcrumbItem);
